<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="onelinechart.LineChartCreator"%>
<%@page import="onelinechart.AIChartManager"%>
<%@page import="onelinechart.AILineChart"%>
<%@page import="onelinechart.RealAIInfo"%>
<%
	AIChartManager aim = AIChartManager
			.getSessionAIChartManager(session);

	RealAIInfo realAIInfo1 = new RealAIInfo("999", "1号机房温度");
	//RealAIInfo realAIInfo2 = new RealAIInfo("888", "2号机房温度");
	
	AILineChart ailc1 = null;
	//AILineChart ailc2 = null;
/*	String graphid="1";
	if (!aim.isMonitor(graphid,realAIInfo1.getDevId())) {
		ailc1 = aim.createAILineChart(graphid,realAIInfo1);
	} else if(!aim.isMonitor(graphid,realAIInfo2.getDevId())){
	    ailc2 = aim.createAILineChart(graphid,realAIInfo2);
	}*/
	if(aim.isMonitor(realAIInfo1.getDevId())){
	ailc1=aim.getAILineChart(realAIInfo1.getDevId());
	}
	else{
	ailc1=aim.createAILineChart(realAIInfo1);
	}
	String chart = ailc1.getChart(realAIInfo1.getDevId());
	
	out.clear();
	out.print(chart);
%>